package com.bsy.videostation

import coil.Coil
import coil.ImageLoader
import com.bsy.framework.base.BaseApplication
import com.bsy.framework.utils.DeviceInfoUtils
import com.bsy.network.manager.HttpManager

/**
 * Created by Sincerity on 2024/5/21.
 * Copyright
 * 描述：
 */
class App : BaseApplication() {
    override fun onCreate() {
        super.onCreate()
        startDispatcher()
        DeviceInfoUtils.init(this)
        //初始化coil
        val imageLoader = ImageLoader.Builder(this)
            .okHttpClient(HttpManager.initOkHttpClient(5))
            .build()

        Coil.setImageLoader(imageLoader)
    }
}